package cqie.frame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (Clazz)表实体类
 *
 * @author makejava
 * @since 2021-09-27 20:37:32
 */
@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("clazz")
@ApiModel(description = "班级表")
public class Clazz extends Model<Clazz> {
    //班级Id
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    @ApiModelProperty(value = "班级ID")
    private Long id;

    @TableField(value = "code")
    @ApiModelProperty(value = "班级代码")
    private String code;

    @TableField(value = "name")
    @ApiModelProperty(value = "班级名称")
    private String name;

    @TableField(value = "status")
    @ApiModelProperty(value = "班级状态")
    //班级状态 0：正常  1：禁用
    private Integer status;
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

